package com.warthur.jfinal.demo.pojo.domain;

import com.warthur.jfinal.demo.pojo.BaseModel;
import io.jboot.db.annotation.Table;

import java.math.BigInteger;

/**
 * @author warthur
 * @date 2019/10/07
 */
@Table(tableName = "t_user", primaryKey = "user_id")
public class User extends BaseModel<User> {
    private static final long serialVersionUID = -9168531492256478320L;

    private String userId;
    private String openId;

    public String getUserId() {
        BigInteger id = this.get("user_id");
        return String.valueOf(id);
    }

    public String getOpenId() {
        return this.get("open_id");
    }
}
